<?php    
$user = Yii::app()->user;
if ($user->id):    
    $uModel = User::model()->findByPk($user->id);
    if (!$uModel->isSubmitter()):               
?>
<div id="topbar">
    <div class="container">
        <div class="mainmenu">
            <?php
                $systemMenu = new SystemMenu();
                $this->widget('zii.widgets.CMenu', array(
                    'items' => $systemMenu->getMenusByUser(user()->id),
                    'activateParents' => true,
                    'activateItems' => true
                ));
                unset($systemMenu)
            ?>
        </div>
        <div class="topbar-right"></div>                        
    </div>
    <div id="topbar-alert"></div>
</div>
<?php endif; ?>
<?php endif; ?>